#include "XmlInfo/XmlInfoContrat.hpp"
#include "XmlInfo/XmlInfoMonstre.hpp"

#include "Core/OptimiseurEquipement.hpp"
#include "Core/CalculateurReussite.hpp"

#include <QtCore/QDebug>

int main( int argc, char * argv[] )
{
    XmlInfoContrat contrat( "", -1u, "Bob", 20, 20, 20, 20, 17, 1, "Palézieux",
                            "Suisse", 0, 1239, Monstrueux, 7000, 34 );

    XmlInfoMonstre monstre( "", -1u, "Mastic le Gourmet", 18, 21, 15, 28, 28,
                            30, 22, 864 );

    OptimiseurEquipement ouvrier;

    const QList< unsigned > * ptr = ouvrier.operator ()( contrat, monstre );

    if ( ptr != 0 )
    {
        qDebug() << "Equipement optimal =" << *ptr;
    }

    return 0;
}
